
Imports storoomc

Namespace configNaming

    Namespace storoom
        Public Module storoom
            Public Const name As String = "storoom"
            Public Const port As String = "port"
            Public Const seektype As String = "seektype"
            Public Const reimportListAfterHealth As String = "reimportListAfterHealth"
            Public Const enablecache As String = "enablecache"
            Public Const machinelist As String = "machinelist"
            Public Const machineaddress As String = "machineaddress_"
            Public Const machineport As String = "machineport_"
            Public Const machineTalkCount As String = "machinetalkcount_"
            Public Const distributeOperationHoldtime As String = "distributeOperationHoldtime"
            Public Const talkHoldtime As String = "talkHoldtime"
            Public Const talkLivetime As String = "talkLivetime"
            Public Const receiveTalkHoldtime As String = "receiveTalkHoldtime"
            Public Const receiveTalkLivetime As String = "receiveTalkLivetime"
            Public Const connectionCount As String = "connectionCount"
            Public Const retrytimes As String = "retrytimes"
            Public Const threadcount As String = "threadcount"
            Public Const stornodeType As String = "stornodeType"
        End Module

        Namespace seektypeDefinition
            Public Module seektype
                Public Const broadcast As String = "broadcast"
                Public Const fixpoint As String = "fixpoint"
                Public Const redundance As String = "redundance"
                Public Const redundance2 As String = "redundance2"
                Public Const redundance3 As String = "redundance3"
                Public Const hash As String = "hash"
            End Module
        End Namespace

        Namespace defaultValue
            Public Module defaultValue
                Public Const port As Int32 = protocol.port.storoom
                Public Const seektype As String = seektypeDefinition.broadcast
                Public Const reimportListAfterHealth As Boolean = True
                Public Const enablecache As Boolean = True
                Public Const machinelist As String = "localhost"
                Public Const machineaddress As String = "localhost"
                Public ReadOnly machineport As String = Convert.ToString(protocol.port.stornode)
                Public Const machineTalkCount As Int32 = storoomc.connectionCount.node
                Public Const distributeOperationHoldtime As Int64 = retrytimes * talkHoldtime + 10000
                Public Const talkHoldtime As Int64 = talkTime.room2node.holdtime
                Public Const talkLivetime As Int64 = talkTime.room2node.livetime
                Public Const receiveTalkHoldTime As Int64 = talkTime.client2room.holdtime
                Public Const receiveTalkLiveTime As Int64 = talkTime.client2room.livetime
                Public Const connectionCount As Int32 = storoomc.connectionCount.room
                Public Const retrytimes As UInt64 = talkTime.room2node.retrytimes
                Public Const threadcount As Int64 = storoomc.threadCount.room
                Public Const stornodeType As String = "stornode"
            End Module
        End Namespace
    End Namespace

End Namespace

